package com.crm.jdy.common.dto;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.crm.jdy.common.vo.PageVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**   
 * @Description:(部门表信息实体类)
 * 
 * @version: V1.0
 * @author: kong
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class HDepartmentInfoDto extends PageVO implements Serializable {

	private static final long serialVersionUID = 16182154736L;

	@ApiModelProperty(name = "deptId" , value = "部门主键id")
	private String deptId;
    
	@ApiModelProperty(name = "deptName" , value = "部门名称")
	private String deptName;
    
	@ApiModelProperty(name = "deptLevel" , value = "部门等级")
	private String deptLevel;
    
	@ApiModelProperty(name = "deptParent" , value = "上级部门")
	private String deptParent;
    
	@ApiModelProperty(name = "deptChild" , value = "下级部门")
	private String deptChild;
    
	@ApiModelProperty(name = "deptChargePerson" , value = "部门领导人")
	private String deptChargePerson;
    
	@ApiModelProperty(name = "deptEmpId" , value = "员工id")
	private String deptEmpId;
    
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "createTime" , value = "")
	private Date createTime;
    
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "updateTime" , value = "")
	private Date updateTime;
    
	@ApiModelProperty(name = "isDelete" , value = "")
	private Integer isDelete;

	private List<HDepartmentInfoDto>  treeList;

}
